<?php
	if (isset($_SESSION['kid'])){
		header ( 'Location: bearbeitung.php'); 
	}
	else{
		header("location:startseite.php");
		
	}
	if (isset($_POST['abmelden'])){
		session_start();
		session_unset();
		session_destroy();
		//unset($_SESSION['kid']);
		header ( 'Location: startseite.php');
		exit();
	}

?>